/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ru.ssau.entities;

import java.util.Collection;
import java.util.Date;
import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;
import ru.ssau.lib.StringIntegerPair;


public interface MessageLocalHome extends EJBLocalHome {

    MessageLocal create(String caption, String text, Integer userId, Integer threadId, Date postDate) throws CreateException;

    MessageLocal findByPrimaryKey(Integer primaryKey) throws FinderException;

    Collection<MessageLocal> findByCaption(String caption) throws FinderException;

    Collection<StringIntegerPair> getAllAsStringIntegerPairs();

}
